package cn.zhuama.basic.mapper;

import cn.zhuama.basic.query.BaseQuery;
import cn.zhuama.org.domain.Department;
import cn.zhuama.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseMapper<T> {

    void save(T t);

    void del(Long id);

    void update(T t);

    T queryOne(Long id);

    List<T> loadAll();
    //总数量
    Long queryCount(BaseQuery query);
    //一个数列的一部分
    List<T> queryData(BaseQuery query);

    void patchDel(List<Long> ids);
}
